from django.conf.urls.static import static
from django.views.static import serve

from Login import views
from django.urls import path, re_path

from course_planning import settings

urlpatterns = [
    path('LoginView/', views.LoginView.as_view(), name='LoginView'),
    path('RegisterView/', views.RegisterView.as_view(), name='RegisterView'),
    path('sendCodeView/', views.sendCodeView.as_view(), name='sendCodeView'),
    path('alterPasswordView/', views.alterPasswordView.as_view(), name='alterPasswordView'),
    path('alterInformationView/', views.alterInformationView.as_view(), name='alterInformationView'),
    path('LoginAlterPasswordView/', views.LoginAlterPasswordView.as_view(), name='LoginAlterPasswordView'),
    re_path('media/avatar/(?P<path>.*)$', serve, {'document_root': settings.MEDIA_ROOT}),
    path('changeAvatarView/', views.changeAvatarView.as_view(), name='changeAvatarView'),
]
